﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<IBupro.Models.UserModel>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="TitleContent" runat="server">
	<%:Html.Translate("userRoles") %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("userRoles") %></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>User <%: Model.User.FirstName %> <%: Model.User.LastName %></legend>
            
            <div class="editor-label">
                <%:Html.Translate("userRoles") %>
            </div>
            <div class="editor-field">
                <%: Html.ListBox("SelectedRoles", Model.MultiSelectListRoles(), new { @class = "select" })%>
            </div>
            

            
            <p>
                <input type="submit" value="<%:Html.Translate("save") %>" />
            </p>
        </fieldset>

    <% } %>


</asp:Content>